/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-03-19
 * Time:22:27
 */
public class Dansheng {
    public static void main(String[] args) {
        //生成0-100的数字
        for (int i = 0; i <=100 ; i++) {
            //缩小寻找范围-1.<=num/2 2.<=开根号num
            for (int j = 0; j <=Math.sqrt(i); j++) {
                if(i%j==0){
                    System.out.println(i);
                    // continue;//跳出当前循环
                    break;//提前结束内循环
                }
            }

        }
    }

}
